pub struct APPINFO {
    version: String,
    name: String,
    author: String,
    main_page: String,
}
use std::env;

impl APPINFO {
    pub fn get_version(&self) -> &str {
        &self.version
    }
    pub fn get_name(&self) -> &str {
        &self.name
    }
    pub fn get_author(&self) -> &str {
        &self.author
    }
    pub fn get_main_page(&self) -> &str {
        &self.main_page
    }
    pub fn default() -> APPINFO {
        APPINFO {
            version: env::var("MOD_MANAGER_TOOL_VERSION").unwrap(),
            name: env::var("MOD_MANAGER_TOOL_NAME").unwrap(),
            author: env::var("MOD_MANAGER_TOOL_AUTHOR").unwrap(),
            main_page: env::var("MOD_MANAGER_TOOL_MAIN_PAGE").unwrap(),
        }
    }
}

